Optimal. Leaf size=210 \[ -\frac {424 \sqrt {x} (2+3 x)}{1155 \sqrt {2+5 x+3 x^2}}-\frac {4}{385} \sqrt {x} (55+39 x) \sqrt {2+5 x+3 x^2}+\frac {4}{231} \sqrt {x} (65+84 x) \left (2+5 x+3 x^2\right )^{3/2}-\frac {10}{33} \sqrt {x} \left (2+5 x+3 x^2\right )^{5/2}+\frac {424 \sqrt {2} (1+x) \sqrt {\frac {2+3 x}{1+x}} E\left (\tan ^{-1}\left (\sqrt {x}\right )|-\frac {1}{2}\right )}{1155 \sqrt {2+5 x+3 x^2}}-\frac {36 \sqrt {2} (1+x) \sqrt {\frac {2+3 x}{1+x}} F\left (\tan ^{-1}\left (\sqrt {x}\right )|-\frac {1}{2}\right )}{77 \sqrt {2+5 x+3 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 210, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {846, 828, 853,
1203, 1114, 1150} \begin {gather*} -\frac {36 \sqrt {2} (x+1) \sqrt {\frac {3 x+2}{x+1}} F\left (\text {ArcTan}\left (\sqrt {x}\right )|-\frac {1}{2}\right )}{77 \sqrt {3 x^2+5 x+2}}+\frac {424 \sqrt {2} (x+1) \sqrt {\frac {3 x+2}{x+1}} E\left (\text {ArcTan}\left (\sqrt {x}\right )|-\frac {1}{2}\right )}{1155 \sqrt {3 x^2+5 x+2}}-\frac {10}{33} \sqrt {x} \left (3 x^2+5 x+2\right )^{5/2}+\frac {4}{231} \sqrt {x} (84 x+65) \left (3 x^2+5 x+2\right )^{3/2}-\frac {4}{385} \sqrt {x} (39 x+55) \sqrt {3 x^2+5 x+2}-\frac {424 \sqrt {x} (3 x+2)}{1155 \sqrt {3 x^2+5 x+2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 828
Rule 846
Rule 853
Rule 1114
Rule 1150
Rule 1203
Rubi steps
\begin {align*} \int (2-5 x) \sqrt {x} \left (2+5 x+3 x^2\right )^{3/2} \, dx &=-\frac {10}{33} \sqrt {x} \left (2+5 x+3 x^2\right )^{5/2}+\frac {2}{33} \int \frac {(5+108 x) \left (2+5 x+3 x^2\right )^{3/2}}{\sqrt {x}} \, dx\\ &=\frac {4}{231} \sqrt {x} (65+84 x) \left (2+5 x+3 x^2\right )^{3/2}-\frac {10}{33} \sqrt {x} \left (2+5 x+3 x^2\right )^{5/2}-\frac {4 \int \frac {\left (270+\frac {1053 x}{2}\right ) \sqrt {2+5 x+3 x^2}}{\sqrt {x}} \, dx}{2079}\\ &=-\frac {4}{385} \sqrt {x} (55+39 x) \sqrt {2+5 x+3 x^2}+\frac {4}{231} \sqrt {x} (65+84 x) \left (2+5 x+3 x^2\right )^{3/2}-\frac {10}{33} \sqrt {x} \left (2+5 x+3 x^2\right )^{5/2}+\frac {8 \int \frac {-\frac {10935}{2}-\frac {12879 x}{2}}{\sqrt {x} \sqrt {2+5 x+3 x^2}} \, dx}{93555}\\ &=-\frac {4}{385} \sqrt {x} (55+39 x) \sqrt {2+5 x+3 x^2}+\frac {4}{231} \sqrt {x} (65+84 x) \left (2+5 x+3 x^2\right )^{3/2}-\frac {10}{33} \sqrt {x} \left (2+5 x+3 x^2\right )^{5/2}+\frac {16 \text {Subst}\left (\int \frac {-\frac {10935}{2}-\frac {12879 x^2}{2}}{\sqrt {2+5 x^2+3 x^4}} \, dx,x,\sqrt {x}\right )}{93555}\\ &=-\frac {4}{385} \sqrt {x} (55+39 x) \sqrt {2+5 x+3 x^2}+\frac {4}{231} \sqrt {x} (65+84 x) \left (2+5 x+3 x^2\right )^{3/2}-\frac {10}{33} \sqrt {x} \left (2+5 x+3 x^2\right )^{5/2}-\frac {72}{77} \text {Subst}\left (\int \frac {1}{\sqrt {2+5 x^2+3 x^4}} \, dx,x,\sqrt {x}\right )-\frac {424}{385} \text {Subst}\left (\int \frac {x^2}{\sqrt {2+5 x^2+3 x^4}} \, dx,x,\sqrt {x}\right )\\ &=-\frac {424 \sqrt {x} (2+3 x)}{1155 \sqrt {2+5 x+3 x^2}}-\frac {4}{385} \sqrt {x} (55+39 x) \sqrt {2+5 x+3 x^2}+\frac {4}{231} \sqrt {x} (65+84 x) \left (2+5 x+3 x^2\right )^{3/2}-\frac {10}{33} \sqrt {x} \left (2+5 x+3 x^2\right )^{5/2}+\frac {424 \sqrt {2} (1+x) \sqrt {\frac {2+3 x}{1+x}} E\left (\tan ^{-1}\left (\sqrt {x}\right )|-\frac {1}{2}\right )}{1155 \sqrt {2+5 x+3 x^2}}-\frac {36 \sqrt {2} (1+x) \sqrt {\frac {2+3 x}{1+x}} F\left (\tan ^{-1}\left (\sqrt {x}\right )|-\frac {1}{2}\right )}{77 \sqrt {2+5 x+3 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 20.15, size = 173, normalized size = 0.82 \begin {gather*} \frac {-424 i \sqrt {2} \sqrt {1+\frac {1}{x}} \sqrt {3+\frac {2}{x}} x^{3/2} E\left (i \sinh ^{-1}\left (\frac {\sqrt {\frac {2}{3}}}{\sqrt {x}}\right )|\frac {3}{2}\right )-2 \left (424+520 x-3106 x^2-6140 x^3+3497 x^4+17775 x^5+16065 x^6+4725 x^7+58 i \sqrt {2} \sqrt {1+\frac {1}{x}} \sqrt {3+\frac {2}{x}} x^{3/2} F\left (i \sinh ^{-1}\left (\frac {\sqrt {\frac {2}{3}}}{\sqrt {x}}\right )|\frac {3}{2}\right )\right )}{1155 \sqrt {x} \sqrt {2+5 x+3 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.73, size = 132, normalized size = 0.63
method | result | size |
default | \(\frac {-\frac {90 x^{7}}{11}-\frac {306 x^{6}}{11}-\frac {2370 x^{5}}{77}+\frac {32 \sqrt {6 x +4}\, \sqrt {3 x +3}\, \sqrt {6}\, \sqrt {-x}\, \EllipticF \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )}{1155}-\frac {212 \sqrt {6 x +4}\, \sqrt {3 x +3}\, \sqrt {6}\, \sqrt {-x}\, \EllipticE \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )}{3465}-\frac {6994 x^{4}}{1155}+\frac {2456 x^{3}}{231}+\frac {7484 x^{2}}{1155}+\frac {72 x}{77}}{\sqrt {x}\, \sqrt {3 x^{2}+5 x +2}}\) | \(132\) |
risch | \(-\frac {2 \left (1575 x^{4}+2730 x^{3}+325 x^{2}-1196 x -270\right ) \sqrt {x}\, \sqrt {3 x^{2}+5 x +2}}{1155}-\frac {\left (\frac {12 \sqrt {6 x +4}\, \sqrt {3 x +3}\, \sqrt {-6 x}\, \EllipticF \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )}{77 \sqrt {3 x^{3}+5 x^{2}+2 x}}+\frac {212 \sqrt {6 x +4}\, \sqrt {3 x +3}\, \sqrt {-6 x}\, \left (\frac {\EllipticE \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )}{3}-\EllipticF \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )\right )}{1155 \sqrt {3 x^{3}+5 x^{2}+2 x}}\right ) \sqrt {x \left (3 x^{2}+5 x +2\right )}}{\sqrt {x}\, \sqrt {3 x^{2}+5 x +2}}\) | \(198\) |
elliptic | \(\frac {\sqrt {x \left (3 x^{2}+5 x +2\right )}\, \left (-\frac {30 x^{4} \sqrt {3 x^{3}+5 x^{2}+2 x}}{11}-\frac {52 x^{3} \sqrt {3 x^{3}+5 x^{2}+2 x}}{11}-\frac {130 x^{2} \sqrt {3 x^{3}+5 x^{2}+2 x}}{231}+\frac {2392 x \sqrt {3 x^{3}+5 x^{2}+2 x}}{1155}+\frac {36 \sqrt {3 x^{3}+5 x^{2}+2 x}}{77}-\frac {12 \sqrt {6 x +4}\, \sqrt {3 x +3}\, \sqrt {-6 x}\, \EllipticF \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )}{77 \sqrt {3 x^{3}+5 x^{2}+2 x}}-\frac {212 \sqrt {6 x +4}\, \sqrt {3 x +3}\, \sqrt {-6 x}\, \left (\frac {\EllipticE \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )}{3}-\EllipticF \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )\right )}{1155 \sqrt {3 x^{3}+5 x^{2}+2 x}}\right )}{\sqrt {x}\, \sqrt {3 x^{2}+5 x +2}}\) | \(259\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.71, size = 63, normalized size = 0.30 \begin {gather*} -\frac {2}{1155} \, {\left (1575 \, x^{4} + 2730 \, x^{3} + 325 \, x^{2} - 1196 \, x - 270\right )} \sqrt {3 \, x^{2} + 5 \, x + 2} \sqrt {x} - \frac {32}{297} \, \sqrt {3} {\rm weierstrassPInverse}\left (\frac {28}{27}, \frac {80}{729}, x + \frac {5}{9}\right ) + \frac {424}{1155} \, \sqrt {3} {\rm weierstrassZeta}\left (\frac {28}{27}, \frac {80}{729}, {\rm weierstrassPInverse}\left (\frac {28}{27}, \frac {80}{729}, x + \frac {5}{9}\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int \left (- 4 \sqrt {x} \sqrt {3 x^{2} + 5 x + 2}\right )\, dx - \int 19 x^{\frac {5}{2}} \sqrt {3 x^{2} + 5 x + 2}\, dx - \int 15 x^{\frac {7}{2}} \sqrt {3 x^{2} + 5 x + 2}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} -\int \sqrt {x}\,\left (5\,x-2\right )\,{\left (3\,x^2+5\,x+2\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________